package com.solidumgame.ninja.ingredient.whole
{	
	import com.pblabs.engine.PBE;
	import com.pblabs.engine.entity.PropertyReference;
	import com.pblabs.rendering2D.SpriteRenderer;
	import com.solidumgame.ninja.ingredient.types.IngredientType;
	
	public class WholeIngredientRendererComponent extends SpriteRenderer
	{
		public function WholeIngredientRendererComponent(type:IngredientType)
		{
			super();
			
			this.fileName = type.getImage();
			this.scene = PBE.scene;
			this.layerIndex = 20;
			this.positionProperty = new PropertyReference("@Spatial.position");
			this.sizeProperty = new PropertyReference("@Spatial.size");
			this.rotationProperty = new PropertyReference("@Spatial.rotation");
		}
		
		override protected function onReset():void{
			super.onReset();
		}
		
		
		
	}
}